how to check if an application is open in python

49

how to check if an application is open in python -

#Iterates through all the programs running in your system and checks for the one in the string
import psutil    
"someProgram" in (p.name() for p in psutil.process_iter())

Comments

Submit
0 Comments